import request from '@/sheep/request';


export default {
	// 注册
	code: (params) =>
	  request({
	    url: '/protal/sendRegisterCode',
	    method: 'POST',
	    params,
	  }),
	  
	  register: (params) =>
	    request({
	      url: '/protal/register',
	      method: 'POST',
	      params,
	    }),
	  // 
	  //登录
	  loginApi: (params) =>
	    request({
	      url: '/protal/login',
	      method: 'POST',
	      params,
	    }),
		
		
		userInfo: (params) =>
		  request({
		    url: '/protal/getInfo',
		    method: 'POST',
		    params,
		  }),
		  
		  //购买数字人直播-下订单
		  orderInfo: (params) =>
		    request({
		      url: '/protal/createOrderH5',
		      method: 'POST',
		      params,
		    }),
		    
		  // 购买数字人直播-订单轮询/protal/orderPolling
          orderPolling: (params) =>
            request({
              url: '/protal/orderPolling',
              method: 'POST',
              params,
            }),
            
			
			//总资产列表
			balancelist:(params) =>
				request({
				  url: '/protal/finance/livestreaming/balanceDetailAdmin/'+ params.userId,
				  method: 'get',
				}),
				
		//查询1/protal/rules/common/listSzUserSimple?nickname=19966590001
		
		checked: (params) =>
		  request({
		    url: '/protal/rules/common/listSzUserSimple',
		    method: 'GET',
		    params,
		  }),
		
		//余额互转
		mutualRecharge: (data) =>
		  request({
		    url: '/protal/finance/livestreaming/mutualRechargeBalance',
		    method: 'POST',
		    data,
		  }),
		  
		  //支付宝
		  paytment: (data) =>
		    request({
		      url: '/protal/pay/splicingParameter',
		      method: 'POST',
		      data,
		    }),
			
			//查询用户是否设置支付面膜/protal/finance/szUser/list?id=234
		  payPassword: (params) =>
		    request({
		      url: '/protal/finance/szUser/list?id='+params.userId,
		      method: 'GET',
		    }),
			
			//修改用户的支付密码
		 setPayment:(data) =>
		    request({
		      url: '/protal/finance/szUser/edit',
		      method: 'POST',
			  data,
		    }),
			
			//打赏
			payreward:(data) =>
		    request({
		      url: '/protal/finance/livestreamingUser/rewardWithGifts',
		      method: 'POST',
			  data,
		    }),
			
			///protal/finance/livestreaming/purchaseRecordToAdmin
			purchaseRecord:(params) =>
		    request({
		      url: '/protal/finance/livestreaming/purchaseRecordToAdmin/'+params.userId,
		      method: 'GET',
		    }),
			
			//我的下级
			userInviteTree:(params) =>
			request({
			  url: '/protal/userInviteTree',
			  method: 'GET',
			  params,
			}),
			
			//修改密码
			updateLogin:(data) =>
			request({
			  url: '/protal/finance/szUser/edit/password',
			  method: 'POST',
			  data,
			}),
			
			//获取最新的apk
			updateApk:(data) =>
			request({
			  url: '/protal/module/record/list',
			  method: 'GET',
			}),
			
			//新增直播间 /protal/module/szLiveRoom
			addliveroom:(data) =>
			request({
			  url: '/protal/module/szLiveRoom',
			  method: 'post',
			  data,
			}),
			
			
			//获取直播间的rtmp协议url
			rtmp:(params) =>
			request({
			  url: '/protal/module/szLiveRoom/url',
			  method: 'GET',
			  params,
			}),
			
			//修改直播间的状态
			liveroomStatus:(data)=>
			   request({
			  url: '/protal/module/szLiveRoom/edit',
			  method: 'POST',
			  data,
			}),
			
			//获取直播间的列表
			liveroomlist:()=>
			   request({
			  url: '/protal/module/szLiveRoom/list',
			  method: 'GET',
			}),
			
			//上传图片	
		  updateFile:(data)=>
			   request({
			  url: '/protal/module/record/uploadFile',
			  method: 'POST',
			  data,
			}),
			
			//可提现明细/protal/finance/livestreaming/withdrawalBalance/326
		  	drawalBalance:(params)=>
			   request({
			  url: '/protal/finance/livestreaming/withdrawalBalance/'+params.userId,
			  method: 'GET',
			}),	
				
			//添加银行卡
			bankcard:(params)=>
			   request({
			  url: "/protal/finance/livestreaming/saveBankCard",
			  method: 'POST',
			  params,
			}),	
			
			//提现 /protal/finance/livestreaming/withdraw
			withdrawal:(params)=>
			   request({
			  url: "/protal/finance/livestreaming/withdraw",
			  method: 'POST',
			  params,
			}),	
			
			
			//账号列表
			accountlist:(params)=>
			   request({
					  url: "/protal/module/szAccount/list",
					  method: 'GET',
					  params,
			}),	
			
			//新增账号
			addAccount:(data)=>
			   request({
					  url: "/protal/module/szAccount",
					  method: 'POST',
					  data,
			}),
			
			
			//提现记录
			withdrawRecord:(params)=>
			   request({
					  url: "/protal/finance/livestreaming/withdrawRecord",
					  method: 'GET',
					  params,
			}),
			
			//微信支付 /protal/pay/wx/url
			wxpay:(data)=>
			   request({
					  url: "/protal/pay/wx/url",
					  method: 'POST',
					  data,
			}),
			
}